## 模板1
import os

env = None
Enable_Clang = False
# 1.编译器
if Enable_Clang and os.system("which clang") == 0:
    # clang编译器
    env = Environment(tools=["default", "clang"])
    env["CC"] = ["clang"]
    env["CXX"] = ["clang++"]
else:
    env = Environment()

env["PROGSUFFIX"] = ".out"              # 可执行文件后缀.out
env["CCFLAGS"] = " -g3 -O0 -Wall"       # gdb 调试

env["PROGSUFFIX"] = ".out"            # 可执行后缀.out
env["CCFLAGS"] = " -ggdb3 -O0 -Wall"  # gdb 调试开关
src_list = [
    "1_ofstream_写文件.cc",
    "2_ifstream_读文件.cc",
    "2.1_ifstream_读取整个文件内容到string.cc",
    "3_ofstream_ifstream_读写二进制文件.cc",
    # "11_ofstream_ifstream_获取linux_文件句柄.cc",
]
for src in src_list:
    env.Program(Split(src))
